//
//  FKLeftbarItem.swift
//  FireKnowledge
//
//  Created by 杨伟毅 on 2019/4/19.
//  Copyright © 2019 wely. All rights reserved.
//

import Foundation
import UIKit

extension UILabel {
    public func setbarItem(_ title:String) -> UILabel{
        let lable = UILabel.init(frame: FKRect(x: 0, y: FKScreenBound.StatusH, width: 100, height: 44))
        lable.text = title
        lable.textColor = FKGrobalColor.FKTopTitleColor
        lable.font = UIFont.systemFont(ofSize: 20, weight: UIFont.Weight.init(900))
        return lable
    }
    public func setBarTitle(_ title:String)->UILabel{
        let lable = UILabel.init(frame: FKRect(x: 0, y: FKScreenBound.StatusH, width: 100, height: 44))
        lable.text = title
        lable.textColor = FKGrobalColor.FKTopTitleColor
        lable.font = UIFont.systemFont(ofSize: 20, weight: UIFont.Weight.init(600))
        return lable
    }
    
}




